package org.snail.du.bean;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;


@Data
@ToString
public class DUDO implements Serializable{
    private Integer id;
    private String aliNumber;
    private String du;
    private Date createTime;
    private int isDel;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof DUDO)) return false;

        DUDO dudo = (DUDO) o;

        if (!getAliNumber().equals(dudo.getAliNumber())) return false;
        return getDu().equals(dudo.getDu());

    }

    @Override
    public int hashCode() {
        int result = getAliNumber().hashCode();
        result = 31 * result + getDu().hashCode();
        return result;
    }
}